package log;

import java.time.LocalDateTime;

class UserAccessLog {


    public UserAccessLog(String userId, String username, String pageUrl, LocalDateTime accessTime) {
        this.userId = userId;
        this.username = username;
        this.pageUrl = pageUrl;
        this.accessTime = accessTime;
    }
    private String userId;
    private String username;
    private String pageUrl;       // 访问的页面 URL

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPageUrl() {
        return pageUrl;
    }

    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }

    public LocalDateTime getAccessTime() {
        return accessTime;
    }

    public void setAccessTime(LocalDateTime accessTime) {
        this.accessTime = accessTime;
    }

    private LocalDateTime accessTime; // 访问时间

    // 构造方法、getter/setter 略
}